package com.hangwei.paperless.model.bean;

import java.util.ArrayList;
import java.util.List;

public class AcceptCheckInfo {

    /**
     * technician : test2
     * technicianId : 096bf25316c84c9f9fe172696480294c
     * technicianStampId : 2b9ca1e6c3544dc29bff24a2e3bc74ab
     * technicianStampTypeCode : stampRectangleT
     * technicianStampCode : 12
     * technicianDate : 2020-11-06 14:51:37
     * inspector : null
     * inspectorId : null
     * inspectorStampId : null
     * inspectorStampTypeCode : null
     * inspectorStampCode : null
     * inspectorDate : null
     * remark : null
     * T1 : [{"conditionId":"","picList":[],"qty":0,"description":"名称test","isAdd":false,"billSeq":1,"sn":"1","id":"23bd3f9b1e6011eb9291886639a40a6f","pn":"1","seq":0}]
     * T2 : [{"conditionId":"","picList":[],"qty":2,"description":"LRU名称","isAdd":false,"billSeq":2,"sn":"2","id":"23bd3c471e6011eb9291886639a40a6f","pn":"2","seq":0}]
     * T3 : [{"picList":[],"qty":0,"description":"产品内容test","remark":"检查备注","isAdd":false,"billSeq":3,"id":"23bd400c1e6011eb9291886639a40a6f","seq":0,"resultVal":"是Yes"}]
     * T4 : [{"picList":[],"qty":0,"description":"多余件名称","remark":"","isAdd":false,"billSeq":4,"sn":"4","id":"23bd3e2f1e6011eb9291886639a40a6f","pn":"4","seq":0}]
     * T5 : [{"picList":[],"qty":0,"description":"缺件名称","remark":"客户意见test","isAdd":false,"billSeq":5,"sn":"5","id":"23bd40aa1e6011eb9291886639a40a6f","pn":"5","seq":0}]
     * T6 : [{"picList":[],"qty":0,"description":"非正常缺陷名称","remark":"66","isAdd":false,"billSeq":6,"sn":"序号6","id":"23bd3eea1e6011eb9291886639a40a6f","pn":"件号6","seq":0}]
     */

    public String technician;
    public String technicianId;
    public String technicianStampId;
    public String technicianStampTypeCode;
    public String technicianStampCode;
    public String technicianDate;
    public String inspector;
    public String inspectorId;
    public String inspectorStampId;
    public String inspectorStampTypeCode;
    public String inspectorStampCode;
    public String inspectorDate;
    public String remark;
    public List<TBean> T1;
    public List<TBean> T2;
    public List<TBean> T3;
    public List<TBean> T4;
    public List<TBean> T5;
    public List<TBean> T6;

    public static class TBean{
        public String conditionId;          //接受状态
        public int qty;
        public String description;          //名称/内容
        public boolean isAdd;               //是否追加行
        public int billSeq;
        public String sn;
        public String id;                   //ID
        public String pn;                   //件号
        public String resultVal;            //结果选项
        public String remark;               //备注/客户处理意见
        public int seq;
        public ArrayList<String> picList;        //图片集合(仅限4，5，6表格)

        public TBean(boolean isAdd, int seq) {
            this.isAdd = isAdd;
            this.seq = seq;
        }

        @Override
        public String toString() {
            return "TBean{" +
                    "conditionId='" + conditionId + '\'' +
                    ", qty=" + qty +
                    ", description='" + description + '\'' +
                    ", isAdd=" + isAdd +
                    ", billSeq=" + billSeq +
                    ", sn='" + sn + '\'' +
                    ", id='" + id + '\'' +
                    ", pn='" + pn + '\'' +
                    ", resultVal='" + resultVal + '\'' +
                    ", remark='" + remark + '\'' +
                    ", seq=" + seq +
                    ", picList=" + picList +
                    '}';
        }
    }

    public static class T1Bean extends TBean{
        public T1Bean(boolean isAdd, int seq) {
            super(isAdd, seq);
        }
    }

    public static class T2Bean extends TBean{
        public T2Bean(boolean isAdd, int seq) {
            super(isAdd, seq);
        }
    }

    public static class T3Bean extends TBean{
        public T3Bean(boolean isAdd, int seq) {
            super(isAdd, seq);
        }
    }

    public static class T4Bean extends TBean{
        public T4Bean(boolean isAdd, int seq) {
            super(isAdd, seq);
        }
    }

    public static class T5Bean extends TBean{
        public T5Bean(boolean isAdd, int seq) {
            super(isAdd, seq);
        }
    }

    public static class T6Bean extends TBean{
        public T6Bean(boolean isAdd, int seq) {
            super(isAdd, seq);
        }
    }
}
